Rails.application.routes.draw do
  get '/login' => 'session#login'
  post '/login' => 'session#do_login'

  get '/register' => 'session#register'
  post '/register' => 'session#do_register'

  get '/forgot' => 'session#forgot'
  post '/forgot' => 'session#do_forgot'

  delete '/logout' => 'session#logout'
  get '/logout' => 'session#logout'


  put '/send_validate_code' => 'session#send_validate_code'
  put '/validate_code' => 'session#validate_code'

  put 'data_api/get_cities'
  get '/about' => 'data_api#functions'
end